package com.practice.car.cardataapp.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * recommendations
 * @author
 */
@Data
public class Recommendations implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private Integer idrecommendations;

    /**
     * 型号，SUV,MPV....
     */
    private String type;

    /**
     * 价格区间的最低价，单位：万元
     */
    private Double minPrice;

    /**
     * 价格区间的最高价，单位：万元
     */
    private Double maxPrice;

    /**
     * 车名
     */
    private String name;

    private static final long serialVersionUID = 1L;

    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + type.hashCode();
        result = 31 * result + minPrice.hashCode();
        result = 31 * result + maxPrice.hashCode();
        return result;
    }
}
